package exercise6;

public class Int {
	private int value;

	public Int(int value) {
		this.value = value;
	}

	public int getValue() {
		return value;
	}

	public void setValue(int value) {
		this.value = value;
	}

	public boolean isPrime(int number) {
		value = number;
		boolean isprime = true;
		int len = value / 2;
		for (int i = 2; i < len; i++) {
			if (value % i == 0) {
				isprime = false;
				break;
			}
		}
		return isprime;
	}

	public boolean isEven(int number) {
		value = number;
		Boolean iseven=true;
		if(value%2!=0) {
			iseven=false;
		}
		return iseven;
	}
}
